package org.example.school.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 作业信息表
 * </p>
 *
 * @author author
 * @since 2025-09-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("assignments")
public class Assignments implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 作业标题
     */
    private String title;

    /**
     * 作业内容
     */
    private String content;

    /**
     * 布置的班级ID
     */
    private Integer classId;

    /**
     * 所属学科ID
     */
    private Integer subjectId;

    /**
     * 布置作业的教师ID
     */
    private Long teacherId;

    /**
     * 截止日期
     */
    private LocalDateTime dueDate;

    private LocalDateTime createdAt;

    private Boolean isDue;


}